#ifndef FPLAYER_X264DECODER_H
#define FPLAYER_X264DECODER_H


#include "FFMpegDecoder.h"

/**
 * author: x-fan
 * date: 2024/1/9
 * desc: FFMpeg的解码器之libX264
 */
class X264Decoder  : public FFMpegDecoder {
public:
  using FFMpegDecoder::FFMpegDecoder;

  virtual ~X264Decoder() = default;

  const AVCodec * findCodec(DecoderParam &decoderParam) override;

  int32_t initContextParam(AVCodecContext *pCodecCtx, DecoderParam &decoderParam) override;

  MediaType getMediaType() override;

  const char *getClassName() override;

  void toString() override;
};


#endif //FPLAYER_X264DECODER_H
